#ifndef SYSSERVERHEARTBEAT_H
#define SYSSERVERHEARTBEAT_H

#include "cnsMacroGlobal.h"
#include "framework.h"
#include "server-socket_global.h"
#include <QThread>
#include <uv.h>
#include "serverclientsocketproc.h"
#include "baseproto.h"
#include "base.pb.h"

class SysServerHeartbeat : public QObject
{
    Q_OBJECT
public:
    Q_INVOKABLE SysServerHeartbeat();
    Q_INVOKABLE void f__on_read(CnsComponentPtr com, ServerClientSocketProc* client, cgproto::Message& msg);
    static void _on_write(uv_write_t* req, int status);
};

Q_DECLARE_METATYPE(SysServerHeartbeat*)

#endif // SYSSERVERHEARTBEAT_H
